<!DOCTYPE html>
<!--suppress ALL-->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>empList</title>
</head>
<body style="padding: 20px;">

<div style="padding: 5px;">
    <h1>empList</h1>
</div>

<div>
    <table border="1" cellspacing="0">
        <tr align="center" style="font-weight: bold;">
            <td>id</td>
            <td>名字</td>
            <td>身份证号</td>
            <td>年龄</td>
            <td>薪资</td>
            <td>部门</td>
            <td>操作</td>
        </tr>

        <tr th:each="emp , indexStatus: ${empList}">
            <td align="center" th:text="${indexStatus.index+1}"></td>
            <td th:text="${emp.name}"></td>
            <td th:text="${emp.cardId}"></td>
            <td th:text="${emp.age}"></td>
            <td th:text="${emp.salary}"></td>
            <td th:text="${emp.empId}"></td>
            <td>
                <a th:href="@{/dept/findDetailById(empId=${emp.id})}">员工部门信息</a>
                <a th:href="@{/emp/deleteById(id=${emp.id})}">删除员工信息</a>
                <a th:href="@{/emp/toUpdateByEmpId(id=${emp.id})}">修改员工信息</a>
            </td>
        </tr>
    </table>
</div>
<div>
    <a href="/emp/findAllHistoriaEmp">删除历史</a>-->
</div>
</body>

</html>
